package Test;


import MyLinkedList.MySingleList;

public class MySingLeListTest {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addLast(6);
        mySingleList.addLast(5);
        mySingleList.addLast(4);
        mySingleList.addLast(3);
        mySingleList.addLast(2);
        System.out.println(mySingleList.size());
        System.out.println(mySingleList.contains(5));
        System.out.println(mySingleList.contains(100));
        mySingleList.addIndex(1,999);
        mySingleList.addIndex(0,123);
        System.out.println(mySingleList.size());
        mySingleList.addIndex(7,12345);
        mySingleList.display();
        mySingleList.remove(123);
        mySingleList.remove(999);
        mySingleList.remove(12345);
        mySingleList.display();

        System.out.println("==================");

    }
}
